﻿using MyX.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyX.Message
{
    public class XWorkResult : XMessage
    {
        public XWorkResult(Guid sourceMessageID, object value) : base()
        {
            Result = value;
            SourceMessageID = sourceMessageID;
        }
                
        /// <summary>
        /// 返回值
        /// </summary>        
        public object Result
        {
            get; set;
        }

        /// <summary>
        /// 来源消息ID
        /// </summary>
        public Guid SourceMessageID { get; set; }
    }
}
